chore(css): use "brand" over "green"#8915
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryLow Risk Overview Tailwind/ A few files only reorder Reviewed by Cursor Bugbot for commit 18c0d60. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
Pull request overview
This PR renames the UI primary color token/utility naming from green to brand to make the design system’s “primary color” convention clearer for downstream overrides.
Changes:
- Renames Tailwind v4
@themecolor tokens from--color-green-*to--color-brand-*and updates the custom glow utility to use the new token. - Updates
@applyusage across UI component CSS modules from*-green-*utilities to*-brand-*. - Updates Storybook design color swatches and a couple of app/site CSS modules to use the new
brandutilities.
Reviewed changes
Copilot reviewed 36 out of 36 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| packages/ui-components/src/styles/theme.css | Renames theme color tokens to brand and updates glow utility token usage. |
| packages/ui-components/src/styles/markdown.css | Switches markdown link styling utilities to brand. |
| packages/ui-components/src/Containers/Sidebar/SidebarItem/index.module.css | Updates sidebar item hover/active styling utilities to brand. |
| packages/ui-components/src/Containers/NavBar/NavItem/index.module.css | Updates active nav background utility to brand. |
| packages/ui-components/src/Containers/Footer/index.module.css | Updates footer link colors to brand. |
| packages/ui-components/src/Common/ThemeToggle/index.module.css | Updates highlighted/active item background utilities to brand. |
| packages/ui-components/src/Common/Tabs/index.module.css | Updates active tab border/text utilities to brand. |
| packages/ui-components/src/Common/Switch/index.module.css | Updates focus ring + checked background utilities to brand. |
| packages/ui-components/src/Common/SkipToContentButton/index.module.css | Updates focus background/ring utilities to brand. |
| packages/ui-components/src/Common/Signature/SignatureItem/index.module.css | Updates “return” background utility to brand. |
| packages/ui-components/src/Common/Signature/SignatureHeader/index.module.css | Updates signature link colors to brand. |
| packages/ui-components/src/Common/Select/index.module.css | Updates highlighted/hover background utilities to brand. |
| packages/ui-components/src/Common/Search/Suggestions/index.module.css | Updates suggestion item text/focus border utilities to brand. |
| packages/ui-components/src/Common/Search/Results/Tabs/index.module.css | Updates selected facet tab border utilities to brand. |
| packages/ui-components/src/Common/Search/Results/Hit/index.module.css | Updates hit focus border utility to brand. |
| packages/ui-components/src/Common/Search/Chat/Trigger/index.module.css | Updates chat trigger focus border utilities to brand. |
| packages/ui-components/src/Common/Search/Chat/Input/index.module.css | Updates chat send button background utilities to brand. |
| packages/ui-components/src/Common/Search/Chat/Actions/index.module.css | Updates selected action icon text utilities to brand. |
| packages/ui-components/src/Common/Preview/index.module.css | Updates announcement gradient token utility to brand. |
| packages/ui-components/src/Common/LanguageDropDown/index.module.css | Updates highlighted/current dropdown background utilities to brand. |
| packages/ui-components/src/Common/GlowingBackdrop/index.module.css | Updates backdrop glow utilities to brand. |
| packages/ui-components/src/Common/DataTag/index.module.css | Updates “property” tag background utility to brand. |
| packages/ui-components/src/Common/CodeTabs/index.module.css | Updates active trigger border/text utilities to brand. |
| packages/ui-components/src/Common/ChangeHistory/index.module.css | Updates hover/focus background utility to brand. |
| packages/ui-components/src/Common/Breadcrumbs/BreadcrumbLink/index.module.css | Updates active breadcrumb background utilities to brand. |
| packages/ui-components/src/Common/Blockquote/index.module.css | Updates blockquote border utilities to brand. |
| packages/ui-components/src/Common/BasePagination/PaginationListItem/index.module.css | Updates current-page background utility to brand. |
| packages/ui-components/src/Common/BaseLinkTabs/index.module.css | Updates active tab border/text utilities to brand. |
| packages/ui-components/src/Common/BaseButton/index.module.css | Updates primary/glow button border/background utilities to brand. |
| packages/ui-components/src/Common/Banner/index.module.css | Updates default banner background utility to brand. |
| packages/ui-components/src/Common/BadgeGroup/index.module.css | Updates default badge group border/bg/text utilities to brand. |
| packages/ui-components/src/Common/Badge/index.module.css | Updates default badge background utility to brand. |
| packages/ui-components/src/Common/AlertBox/index.module.css | Updates success alert background/title utilities to brand. |
| packages/ui-components/design/colors.stories.tsx | Updates color swatch story to use bg-brand-*. |
| apps/site/components/Common/LinkWithArrow/index.module.css | Updates link-with-arrow colors to brand. |
| apps/site/components/Blog/BlogPostCard/index.module.css | Updates blog post card subtitle color utilities to brand. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8915 +/- ##
==========================================
+ Coverage 73.23% 73.24% +0.01%
==========================================
Files 102 102
Lines 8628 8628
Branches 313 313
==========================================
+ Hits 6319 6320 +1
+ Misses 2308 2307 -1
Partials 1 1 ☔ View full report in Codecov by Sentry. |
It's easier for overriders to understand the
-brand-convention for the primary color, rather than-green-